#include <iostream>

using namespace std;
#include"invoker.h"
#include"concrete_receiver.h"
#include"concrete_command.h"
int main()
{
   IReceiver *rev=new ReceiverB();
   Command *cmd1=new TakeCommand(rev);
   Command *cmd2=new PayCommand(rev);
   Invoker inv;
   inv.addCmd(cmd1);
   inv.addCmd(cmd2);
   inv.notify();
   delete cmd1;
   delete cmd2;
   delete rev;
    return 0;
}
